package org.whale.springcloud.eureka.user.feign.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.whale.springcloud.eureka.common.entity.JsonResponse;
import org.whale.springcloud.eureka.user.feign.service.impl.UserFeignServiceFallback;

import java.util.Map;

@FeignClient(value = "user-server", fallback = UserFeignServiceFallback.class)
public interface UserFeignService {

  @RequestMapping(value = "/userServer/queryUserInfo")
  // 需要添加RequestParam，否则参数没有传递
  JsonResponse<String> queryUserInfo(@RequestParam Map<String, String> params);
}
